package dp;

public class Application {

	public static void main(String[] args) {
		
		Composant c1 = new Composant1();
		c1.operation();
		System.out.println("----------------------------------------");
		
		Composant c2 = new Composant2();
		c2.operation();
		System.out.println("----------------------------------------");
		
		c1 = new Decorateur1(c1);
		c1.operation();
		System.out.println("----------------------------------------");
		
		c2 = new Decorateur2(c2);
		c2.operation();
		System.out.println("----------------------------------------");
		
		c1 = new Decorateur2(c1);
		c1.operation();
		System.out.println("----------------------------------------");
		
		c1 = new Decorateur1(c1);
		c1.operation();
		System.out.println("----------------------------------------");
	}
}
